package com.woniu.payback_font.result;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

@Api(value = "配置统一返回值")
public class ResponseResult<T> {

    @ApiModelProperty(value = "返回值状态码",name = "code")
    private int code;
    @ApiModelProperty(value = "返回信息",name = "code")
    private String msg;
    @ApiModelProperty(value = "返回主体数据",name = "code")
    private T data;

    public ResponseResult() {
    }

    public ResponseResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
